package com.yunpeng.aidevice.common.dto.save;

import java.io.Serializable;
import java.util.List;

/**
 * DeviceSaveDTO 设备保存对象
 *
 * @author : Moore(hemw)
 * @date : 2020-04-27
 */
public class DeviceSaveDTO implements Serializable {

    /**
     * 设备编号
     */
    private String deviceNumber;
    /**
     * 设备名称
     */
    private String deviceName;
    /**
     * 安装地点
     */
    private String installLocation;
    /**
     * 组织代码数组
     */
    private List<String> orgCodes;
    /**
     * 组织编号数组
     */
    private List<String> orgNumbers;
    /**
     * 是否禁用
     */
    private Boolean disabled;
    /**
     * 设备代码（设备标识）
     */
    private String deviceCode;
    /**
     * 商户代码
     */
    private String merchantCode;
    /**
     * 租户代码
     */
    private String tenantCode;

    /**
     * 设备标识
     */
    private String deviceId;

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getInstallLocation() {
        return installLocation;
    }

    public void setInstallLocation(String installLocation) {
        this.installLocation = installLocation;
    }

    public List<String> getOrgCodes() {
        return orgCodes;
    }

    public void setOrgCodes(List<String> orgCodes) {
        this.orgCodes = orgCodes;
    }

    public List<String> getOrgNumbers() {
        return orgNumbers;
    }

    public void setOrgNumbers(List<String> orgNumbers) {
        this.orgNumbers = orgNumbers;
    }

    public Boolean getDisabled() {
        if (disabled == null) {
            disabled = true;
        }
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    @Override
    public String toString() {
        return "DeviceSaveDTO{" +
                "deviceNumber='" + deviceNumber + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", installLocation='" + installLocation + '\'' +
                ", orgCodes=" + orgCodes +
                ", orgNumbers=" + orgNumbers +
                ", disabled='" + disabled + '\'' +
                ", deviceCode='" + deviceCode + '\'' +
                ", merchantCode='" + merchantCode + '\'' +
                ", tenantCode='" + tenantCode + '\'' +
                ", deviceId='" + deviceId + '\'' +
                '}';
    }
}
